import requests

from Testtongzhi.venv import config


class noticeAPI():
    def __init__(self):
        self.notice_url= config.BASE_URL + "/system/notice/list"
        self.add_url= config.BASE_URL + "/system/notice/add"

    def noticeList(self,cookie,query_data):
        return requests.post(url=self.notice_url,cookies=cookie,data=query_data)

    def addnotice(self,cookie,notice_data):
        return requests.post(url=self.add_url,cookies=cookie,data=notice_data)